const fs = require('fs');

const key_len = 10;
const key_count = 20;
const key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789[]><?":*&^%$#@!+-*/.;';
let keyArr = []
for (let i = 0; i < key_count; i++) {
	let key = ''
	for (let j = 0; j < key_len; j++) {
		key += key_chars[Math.floor(Math.random() * key_chars.length)];
	}
	keyArr.push(key)
}
// console.log(keyArr)
 // fs.writeFileSync('.keys', arr.join('\n'));
 
fs.writeFileSync('.keys',keyArr.join('\n'))
// 
console.log(fs.readFileSync('.keys').toString().split('\n'))
